<?php 
	if( $msg ) 
		echo '<script type="text/javascript">alert("'.$msg.'");</script>';
?>
<style>

</style>
<div id="cx_login">
	<div id="form_login">
		<div id="header">
		Bem Vindo <br />Consulta de OS
		</div>
		<div id="linha"> </div>
		<?php 
			//echo $this->Html->script(array('jquery-1.7.1.min', 'jquery.meio.mask'));
			echo $this->Html->scriptBlock('
				$(document).ready(function() {
					$("#OrdemservicoNumeroOs").setMask({mask: "9", type: "repeat"}).css("text-align", "right");
					$("#OrdemservicoCpf").setMask("cpf").css("text-align", "right");
			  	});
			', array('inline' => true));
		?>
		<div id="campos">
		<?php
			echo $this->Form->create('Ordemservico');
			echo $this->Form->inputs(array('fieldset' => false,
										   'numero_os' => array('label' => 'Núm. OS', 'style' => 'width:180px;'),
										   'cpf' => array('label' => 'CPF', 'type' => 'text', 'style' => 'width:180px;')));
			echo $this->Form->button('Limpar', array('type' => 'reset', 'class' => 'right'));
			echo $this->Form->button('Consultar', array('type' => 'submit', 'class' => 'right'));
			echo $this->Form->end();
			
		?>
		</div>
	</div>
</div>